1.1.7.3. unix.MallocSizeof (C) Check for dubious malloc arguments involving sizeof.
malloc
sizeof
Examples:
void test() { long *p = malloc(sizeof(short)); // warn: result is converted to 'long *', which is // incompatible with operand type 'short' free(p); }